from tkinter import *

root=Tk()

m1 = PanedWindow(showhandle=True, sashrelief=SUNKEN)
m1.pack(fill=BOTH,expand=1)
kong1=Label(m1,text='kong')

m1.add(kong1)

m2 = PanedWindow(orient=VERTICAL,showhandle=True, sashrelief=SUNKEN)
m1.add(m2)

top=Label(m2,text='top')
m2.add(top)
bottom=Label(m2,text='bottom')
m2.add(bottom)

m3 = PanedWindow(showhandle=True, sashrelief=SUNKEN)
kong2=Label(m3,text='kong')
m1.add(m3)
m3.add(kong2)



mainloop()
